package org.uim.cricket.storage.raise.fetch;

import org.uim.cricket.util.web.WebHTMLReader;

public class WebResourceFetcher implements ResourceFetchable {

	@Override
	public StringBuilder fetchResource(String argument) throws Exception {
		if (argument == null) {
			throw new NullPointerException ("Resource location can't be null!");
		}
		WebHTMLReader html = new WebHTMLReader(argument);
		StringBuilder src = html.readPage();
		
		return src;
	}

}
